<!DOCTYPE html>
<html lang="zh-CN">
<meta charset="utf-8" />
<head>
<title>查看主干道环境 <?php echo $this->config->item('title');?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet"	href="<?php echo base_url()?>public/css/bootstrap.min.css">
<link rel="stylesheet" href="<?php echo base_url()?>public/css/style.css">
<link rel="stylesheet" href="<?php echo base_url()?>public/css/bootstrap-select.min.css">
</head>
<body>
	<script src="<?php echo base_url()?>public/js/jquery-2.0.2.min.js"></script>
	<script src="<?php echo base_url()?>public/js/bootstrap.min.js"></script>
	<script src="<?php echo base_url()?>public/js/bootstrap-confirm.js"></script>
	<script src='<?php echo base_url()?>public/js/bootbox.min.js'></script>
	<script src='<?php echo base_url()?>public/js/jquery.form.js'></script>
	<script src='<?php echo base_url()?>public/js/ssi_common.js'></script>
	
	<div role="navigation" class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div class="navbar-header">
				<a class="navbar-brand">SSI后台管理系统</a>
			</div>
			<div class="collapse navbar-collapse navbar-right">
				<ul class="nav navbar-nav">
					<li><a href="<?php echo base_url()?>" class="navbar-link">首页</a></li>
					<li><a href="<?php echo base_url()."index.php/common_login_user_set"?>" class="navbar-link">超级管理员</a></li>
					<li><a href="<?php echo base_url()?>index.php/common_login_manage/logout" class="navbar-link">退出</a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="col-xs-3">
				<?php echo $user_menu?>
			</div>
			<div class="col-md-9">
				<div class="panel panel-default">
					<div class="panel-heading">查看主干道环境</div>
					<div class="panel-body">
						<form method="post" enctype="multipart/form-data" id="main_from" action="<?php echo base_url()."index.php"?>/media_env_urban_manage/update_env_urban_road"
							class="form-horizontal">
							<div id="env_name" class="form-group">
								<label for="env_name" class="control-label col-sm-3">主干道名称</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['env_name']==""?"无": $env_urban_road_info['env_name']?>
									</p>
								</div>
							</div>
							<div id="Parents" class="form-group">
								<label for="parent1" class="control-label col-sm-3">所属地区</label>
								<div id="parents" class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['province_name']." - ". $env_urban_road_info['city_name']." - " ?>
									
									<?php if ($last_regions!=null) { 
											foreach ($last_regions as $last_region){ 
												for ($i=0;$i<count($region_list);$i++){
											 		if ($region_list[$i]['region_id']==$last_region['region_id']) {
											 			echo $last_region['region_name'];
											 			if ($last_region['region_type']=="10") {
											 				echo "(中心城区)";
											 			}elseif ($last_region['region_type']=="20") {
											 				echo "(周边城区)";
											 			}elseif ($last_region['region_type']=="30") {
											 				echo "(下属县市)";
											 			}elseif ($last_region['region_type']=="40") {
											 				echo "(下属镇区)";
											 			}
											 			echo "&nbsp;&nbsp;";
											 		}
											 	}
											} 
										}?>
									 </p>
								</div>
							</div>
							<div class="form-group">
								<label for="starting_position" class="control-label col-sm-3">道路起始位置</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['starting_position']==""?"无": $env_urban_road_info['starting_position']?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="road_length" class="control-label col-sm-3">道路全长</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['road_length']==""?"无": $env_urban_road_info['road_length']."公里"?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="level" class="control-label col-sm-3">道路级别</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php  if ($env_urban_road_info['level']==10) {
										echo "核心主干道";
									}elseif ($env_urban_road_info['level']==20) {
										echo "一般主干道";
									}elseif ($env_urban_road_info['level']==30) {
										echo "次干道";
									}?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="distribution_map" class="control-label col-sm-3">媒体分布图</label>
								<div class="col-sm-5">
									<?php if ($env_urban_road_info['distribution_map']) {?>
									<img src="<?php echo $this->config->item("ssi_file_url").$env_urban_road_info['distribution_map']?>"  class="form_img" />
									<?php }else{
										echo "<p class='form-control-static'>还没有上传任何分布图图</p>";
									}?>
								</div>
							</div>
							<div class="form-group">
								<label for="sketch_map" class="control-label col-sm-3">位置示意图</label>
								<div class="col-sm-5">
									<?php if ($env_urban_road_info['sketch_map']) {?>
									<img src="<?php echo $this->config->item("ssi_file_url").$env_urban_road_info['sketch_map']?>" class="form_img" />
									<?php }else{
										echo "<p class='form-control-static'>还没有上传任何示意图</p>";
									}?>
								</div>
							</div>
							
							<div class="form-group">
								<label for="circle" class="control-label col-sm-3">途径商圈</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['circle']==""?"无": $env_urban_road_info['circle']?>
									</p>
								</div>
							</div>
							
							<div class="form-group">
								<label for="market" class="control-label col-sm-3">途径大型购物中心</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['market']==""?"无": $env_urban_road_info['market']?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="professional_market" class="control-label col-sm-3">途径专业市场</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['professional_market']==""?"无": $env_urban_road_info['professional_market']?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="hotel" class="control-label col-sm-3">途径四星级以上酒店</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['hotel']==""?"无": $env_urban_road_info['hotel']?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="hospital" class="control-label col-sm-3">途径大型医院</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['hospital']==""?"无": $env_urban_road_info['hospital']?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="college" class="control-label col-sm-3">沿线高校</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['college']==""?"无": $env_urban_road_info['college']?>
									</p>
								</div>
							</div>
							
							<div class="form-group">
								<label for="office" class="control-label col-sm-3">沿线大型写字楼</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['office']==""?"无": $env_urban_road_info['office']?>
									</p>
								</div>
							</div>
							
							<div class="form-group">
								<label for="venues" class="control-label col-sm-3">沿线大型场馆</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['venues']==""?"无": $env_urban_road_info['venues']?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="venues" class="control-label col-sm-3">沿线旅游景点</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['attractions']==""?"无": $env_urban_road_info['attractions']?>
									</p>
								</div>
							</div>
							
							
							<div class="form-group">
								<label for="community" class="control-label col-sm-3">沿线大型社区</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['community']==""?"无": $env_urban_road_info['community']?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="subway_station" class="control-label col-sm-3">沿线地铁站</label>
								<div class="col-sm-5">
									<p class='form-control-static'>
									<?php echo  $env_urban_road_info['subway_station']==""?"无": $env_urban_road_info['subway_station']?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="env_desc" class="control-label col-sm-3">优质LED大牌</label>
								<div class="col-sm-7">
									<p class='form-control-static'>
									<?php if ($led_excellent_media_list) {
										foreach ($led_excellent_media_list as $led_excellent_media){
											echo "<a href='".base_url()."index.php/media_media_manage/query_media?media_id=".$led_excellent_media['media_id']."' target='_blank'>".$led_excellent_media['media_id']."</a> ";
										}
									}?>
									</p>
								</div>
							</div>
							<div class="form-group">
								<label for="env_desc" class="control-label col-sm-3">优质常规大牌</label>
								<div class="col-sm-7">
									<p class='form-control-static'>
									<?php if ($common_excellent_media_list) {
										foreach ($common_excellent_media_list as $common_excellent_media){
											echo "<a href='".base_url()."index.php/media_media_manage/query_media?media_id=".$common_excellent_media['media_id']."' target='_blank'>".$common_excellent_media['media_id']."</a> ";
										}
									}?>
									</p>
								</div>
							</div>
							
							<div class="form-group">
								<div class="col-sm-offset-3 col-sm-10">
									<button type="button" onclick='history.back()' class="btn btn-primary">返回</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
<div  class="back-to" id="toolBackTop">
	<a title="返回顶部" onclick="window.scrollTo(0,0);return false;" href="#top" class="back-top">
	返回顶部</a>
	<a title="返回底部" onclick="window.scrollTo(0,document.body.scrollHeight);return false;" href="#bottom" class="back-bottom">
	返回底部</a>
</div>
</body>
</html>
